import request from '@/utils/request'

// 生态产品分类列表
export const productTypeList = (params: any) => {
  return request({
    url: '/tob/tianqi/tqProducttypeList',
    method: 'get',
    params
  })
}

// 生态产品列表
export const productList = (params: any) => {
  return request({
    url: '/tob/tianqi/tqProductList',
    method: 'get',
    params
  })
}

// 生态产品详情
export const productDetail = (id: any) => {
  return request({
    url: `/tob/tianqi/product/${id}`,
    method: 'get'
  })
}

// 生态产品树
export const tqProducttypeTree = (params: any) => {
  return request({
    url: '/tob/tianqi/tqProducttypeTree',
    method: 'get',
    params
  })
}
